package com.spring.controller.web;

import com.spring.controller.dto.order.User;

/**
 * 【单例模式】
 * @author:chenhs E-mail:hson08_chen@163.com
 * Created on 2018年3月6日 上午11:16:05
 */
public class UserThreadLocal {
	
	private static final ThreadLocal<User> LOCAL = new ThreadLocal<User>();
	
	public static void set(User user) {
		LOCAL.set(user);
	}
	
	public static User get() {
		return LOCAL.get();
	}
	
}
